package cc.lj.internal.payment.infrastructure.repository;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.payment.domain.settlement.repository.ICouponsSubsidyRepository;
import cc.lj.internal.payment.infrastructure.po.CouponsSubsidyPO;
import cc.lj.internal.payment.infrastructure.repository.mysql.CouponsSubsidyMysqlRespository;
import cc.lj.internal.payment.infrastructure.repository.mysql.TicketPayRecordMysqlRespository;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * 电子券分摊表 Repository 实现
 * @author liangxifeng
 * @date 2022/10/24 14:55
 */

@Repository("couponsSubsidyRepository")
public class CouponsSubsidyRepository implements ICouponsSubsidyRepository {
    @Resource(name="couponsSubsidyMysqlRespository")
    private CouponsSubsidyMysqlRespository repository;

    @Override
    public Integer updateById(CouponsSubsidyPO entityPO) {
        return repository.updateById(entityPO);
    }

    @Override
    public PageInfo<CouponsSubsidyPO> selectPage(PageParam pageParam) {
        return repository.selectPage(pageParam);
    }

    @Override
    public List<CouponsSubsidyPO> getList(CouponsSubsidyPO entityPO) {
        return repository.getList(entityPO);
    }

    @Override
    public Integer insert(CouponsSubsidyPO subsidyPO) {
        return repository.insert(subsidyPO);
    }

    @Override
    public CouponsSubsidyPO getById(Integer id) {
        return repository.getById(id);
    }
}
